<script setup>
import {computed, reactive} from "vue";


let state = reactive({
  count:0
})
let doubleCount = computed(()=> state.count * 2)

let handleChange = () =>{
  state.count ++;
}
</script>

<template>
  <div>
    <button @click="handleChange">点击</button>
    {{ state.count }},{{doubleCount}}
  </div>
</template>

<style lang="scss" scoped>

</style>